import Mock from "mockjs";
import api from "@/plugins/api";
import {
  getTaskList,
  editTask,
  deleteTask,
  execTask,
  changeStatus,
  getAllSourceList,
  getSyncConstraintListAndSelectedList,
  getSyncSelectedList,
  getAllTypeList,
  saveSelectedList,
  getSourceList,
  getTargetList,
  delSourceData,
  getMapList,
  saveMapList,
  getDigitisingResults,
  stopTask,
  getLogDetail,
  getResultDetail,
  getSubjectList,
  getModelList,
  getDataMaintenanceDetail,
  saveModelData,
  exportModelData,
  exportTemplateOfModelData,
  uploadModelData,
} from "./dataCollection";
Mock.mock(RegExp(api.dataCollection.getTaskList), "post", getTaskList);
Mock.mock(RegExp(api.dataCollection.editTask), "post", editTask);
Mock.mock(RegExp(api.dataCollection.deleteTask), "get", deleteTask);
Mock.mock(RegExp(api.dataCollection.execTask), "post", execTask);
Mock.mock(RegExp(api.dataCollection.changeStatus), "post", changeStatus);
Mock.mock(
  RegExp(api.dataCollection.getAllSourceList),
  "post",
  getAllSourceList
);
Mock.mock(
  RegExp(api.dataCollection.getSyncConstraintListAndSelectedList),
  "post",
  getSyncConstraintListAndSelectedList
);
// Mock.mock(
//   RegExp(api.dataCollection.getSyncSelectedList),
//   "post",
//   getSyncSelectedList
// );
Mock.mock(RegExp(api.dataCollection.getAllTypeList), "post", getAllTypeList);
Mock.mock(
  RegExp(api.dataCollection.saveSelectedList),
  "post",
  saveSelectedList
);
Mock.mock(RegExp(api.dataCollection.getSourceList), "post", getSourceList);
// Mock.mock(RegExp(api.dataCollection.getTargetList), "post", getTargetList);
// Mock.mock(RegExp(api.dataCollection.delSourceData), "post", delSourceData);
Mock.mock(RegExp(api.dataCollection.getMapList), "post", getMapList);
Mock.mock(RegExp(api.dataCollection.saveMapList), "post", saveMapList);
Mock.mock(
  RegExp(api.dataCollection.getDigitisingResults),
  "post",
  getDigitisingResults
);
Mock.mock(RegExp(api.dataCollection.stopTask), "post", stopTask);
Mock.mock(RegExp(api.dataCollection.getLogDetail), "post", getLogDetail);
Mock.mock(RegExp(api.dataCollection.getResultDetail), "post", getResultDetail);
Mock.mock(RegExp(api.dataCollection.getSubjectList), "post", getSubjectList);
Mock.mock(RegExp(api.dataCollection.getModelList), "post", getModelList);
Mock.mock(
  RegExp(api.dataCollection.getDataMaintenanceDetail),
  "post",
  getDataMaintenanceDetail
);
Mock.mock(RegExp(api.dataCollection.saveModelData), "post", saveModelData);
Mock.mock(RegExp(api.dataCollection.exportModelData), "get", exportModelData);
Mock.mock(
  RegExp(api.dataCollection.exportModelData),
  "get",
  exportTemplateOfModelData
);
Mock.mock(RegExp(api.dataCollection.uploadModelData), "post", uploadModelData);
